package org.mm.proxycache.util;

import org.apache.mina.common.DefaultIoSessionDataStructureFactory;
import org.apache.mina.common.IoSession;
import org.apache.mina.common.IoSessionAttributeMap;
import org.apache.mina.common.IoSessionDataStructureFactory;
import org.apache.mina.common.WriteRequestQueue;

public class SessionDataStructureFactory implements IoSessionDataStructureFactory
{

    private DefaultIoSessionDataStructureFactory defaultFactory = new DefaultIoSessionDataStructureFactory();

    public IoSessionAttributeMap getAttributeMap( IoSession session ) throws Exception
    {
        return new SessionAttributeMap();
    }

    public WriteRequestQueue getWriteRequestQueue( IoSession session ) throws Exception
    {
        return defaultFactory.getWriteRequestQueue( session );
    }

}
